package com.engineering.elink.service;

import java.util.Date;
import java.util.List;
import java.util.Map;

import com.engineering.elink.co.CommentCo;
import com.engineering.elink.co.BaseCo;
import com.engineering.elink.domain.Comment;
import com.engineering.elink.domain.Praise;

public interface CommentService {

	Map<String, Object> getTopCommentsByFileId(CommentCo co);

	Map<String, Object> addReply(String fkId, int commentId, String userId,String content);

	Map<String, Object> add(Comment comment);

	Map<String, Object> getAllCommentsByTopId(BaseCo bc, int topId,int type,Date startTime,Date endTime);

	Map<String, Object> addPraise(Praise praise);

	Map<String, Object> getEvaluateById(String fkId,Date startTime,Date endTime,int type);

	List<Map<String, Object>> getRecentComment(int count);

	Map<String, Object> getCommentForMe(BaseCo co, String userId);

	Map<String, Object> getMyComment(BaseCo co, String userId);

	Map<String, Object> delComment(String userId, int type);

}
